package com.ls.fw.search.solrj.form.core;

import org.hibernate.validator.constraints.NotBlank;

import com.ls.fw.search.solrj.bean.Property;

public class CreateForm{
	private String core;
	private String instanceDir;
	private String config;
	private String schema;
	private String dataDir;
	private String configSet;
	private String collection;
	private String shard;
	private String async;
	private Property property;

	public CreateForm() {
		super();
		this.action = "CREATE";
	}
	@NotBlank
	protected String action;
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}

	public String getCore() {
		return core;
	}

	public void setCore(String core) {
		this.core = core;
	}

	public String getInstanceDir() {
		return instanceDir;
	}

	public void setInstanceDir(String instanceDir) {
		this.instanceDir = instanceDir;
	}

	public String getConfig() {
		return config;
	}

	public void setConfig(String config) {
		this.config = config;
	}

	public String getSchema() {
		return schema;
	}

	public void setSchema(String schema) {
		this.schema = schema;
	}

	public String getDataDir() {
		return dataDir;
	}

	public void setDataDir(String dataDir) {
		this.dataDir = dataDir;
	}

	public String getConfigSet() {
		return configSet;
	}

	public void setConfigSet(String configSet) {
		this.configSet = configSet;
	}

	public String getCollection() {
		return collection;
	}

	public void setCollection(String collection) {
		this.collection = collection;
	}

	public String getShard() {
		return shard;
	}

	public void setShard(String shard) {
		this.shard = shard;
	}

	public String getAsync() {
		return async;
	}

	public void setAsync(String async) {
		this.async = async;
	}

	public Property getProperty() {
		return property;
	}

	public void setProperty(Property property) {
		this.property = property;
	}

	@Override
	public String toString() {
		return "CreateForm [core=" + core + ", instanceDir=" + instanceDir + ", config=" + config + ", schema=" + schema
				+ ", dataDir=" + dataDir + ", configSet=" + configSet + ", collection=" + collection + ", shard="
				+ shard + ", async=" + async + ", property=" + property + "]";
	}
}
